target= test
cxx=g++
std=-std=c++11 -lmysqlclient

all:$(target)

test:test.cc
	$(cxx) -o $@ $^ $(std)

.PHONY:clean towin tolinux

lnx_user=yyx
lnx_addr=47.101.68.49
win_user=w3395
win_addr=192.168.2.14
src=~/Project/easylog
lnx_dst=/home/yyx
win_dst=D:\\

clean:
	rm -f $(target)

towin:
	scp -r $(src) $(win_user)@$(win_addr):$(win_dst)

tolinux:
	scp -r $(src) $(lnx_user)@$(lnx_addr):$(lnx_dst)

